home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_4.lha
/
7_4
/
7_4e.eqn
< prev
next >
Wrap
Text File
|
1993-08-08
|
473b
|
14 lines
.EQ
elim $$
.EN
he distance between two points is given by the formula
sqrt { DELTA x sup 2 + DELTA y sup 2 }$.
DELTA x$ is the difference between the $x$ values of the two points;
imilarly for $DELTA y$.
fter gathering the 8 contact points, it is straightforward to loop
hrough all of the combinations of points to find which pair of points is
losest together.
nce the two closest points are found, the
.CW put_line ()
unction can be called to draw the line between them.